
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../../global/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./frm.css" />
</head>
<body>
	<div id="main">
	    <section id="chat" class="aui-chat"></section>
	</div>

    <div id="quick-words" class="aui-hide" data-fname="quick-words" data-xref="leftx" data-yref="bottom" tapmode onclick="popupQuickWords();" ontouchstart="onFloatStart(this, event);" ontouchmove="onFloating(this, event);" ontouchend="onFloatEnd(this, event);">
		<img src="../../../global/image/common-words2.png" />
    </div>
</body>

<script id="tpl-time-label" type="text/x-dot-template">
	<div class="aui-chat-header non-select">{{=vdate4Msg(it)}}</div>
</script>

<script id="tpl-im-sys-msg" type="text/x-dot-template">
	<div class="aui-chat-center non-select">
        <div>{{=decodeEmoji(it.message)}}</div>
    </div>
</script>

<script id="tpl-one-msg" type="text/x-dot-template">
    <div class="aui-chat-item aui-chat-{{=it.lr}} non-selectx" data-sender="{{=it.senderUId}}">
    {{? it.recv && it.senderUId > 0}}
        <div class="aui-chat-media non-select" tapmode onclick="ccn() && views.openUCenterWin({{=it.senderUId}}, &quot;{{=escapeStr(it.nick)}}&quot;);">
    {{??}}
        <div class="aui-chat-media non-select">
    {{?}}
            <img class="non-select" src="{{=it.avatar}}" />
            {{? str_being(it.role)}}
            <div class="aui-chat-role">
                <div style="{{? it.role_color}}background-color:{{=it.role_color}}{{?}}">{{=it.role}}</div>
            </div>
            {{?}}
        </div>
        <div class="aui-chat-nick">{{=it.nick}}</div>
    {{? it.post}}
        <div class="aui-chat-inner" data-tid="{{=it.tid}}" data-from="chat-win" tapmode onclick="views.openPostFromList(this)">
            <div class="aui-chat-content">
                <div class="aui-chat-arrow non-select"></div>
                    <div class="info">
                        <div class="subject">{{=decodeEmoji(it.subject)}}</div>
                        <div class="">
                            <div class="content">{{=fmtContent(decodeEmoji(it.text))}}</div>
                            <img class="thubnail" src="{{=absAssetUrl(it.thumbnail)}}" alt=""/>
                        </div>
                    </div>
            </div>
    {{??}}
        <div class="aui-chat-inner">
            <div class="aui-chat-content">
                <div class="aui-chat-arrow non-select"></div>
				{{? it.msgtype == 'text'}}
					{{=myEmo.transText(dealTelInContent(decodeEmoji(it.message)))}}
				{{?? it.msgtype == 'pic'}}
				    <img class="non-select contentImg" style="max-height: 150px;max-width: 150px;width: auto;height: auto;" src="{{=it.pic}}" tapmode onclick="viewBigPhoto(this);" />
				{{??}}
					<p class="non-select" style="color:red;">[未知消息类型]</p>
				{{?}}
            </div>
    {{?}}
        {{? it.failed}}
            <div class="aui-chat-status">
                <i class="aui-iconfont aui-icon-info aui-text-danger"></i>
            </div>
        {{?}}
        </div>
    </div>
</script>

<script id="tpl-msg-failed" type="text/x-dot-template">
    <div class="aui-chat-status">
        <i class="aui-iconfont aui-icon-info aui-text-danger"></i>
    </div>
</script>

<script type="text/javascript" src="../../../config.js"></script>
<script type="text/javascript" src="../../../global/script/lib/api.js"></script>
<script type="text/javascript" src="../../../global/script/lib/doT.min.js"></script>
<script type="text/javascript" src="../../../global/script/libx/myRongIM.js"></script>
<script type="text/javascript" src="../../../global/script/libx/myChatBox.js"></script>
<!-- <script type="text/javascript" src="../../../global/script/libx/myDropMenu.js"></script> -->
<script type="text/javascript" src="../../../global/script/libx/myCompact.js"></script>
<script type="text/javascript" src="../../../global/script/libx/myMediaScanner.js"></script>
<script type="text/javascript" src="../../../global/script/libx/myPic.js"></script>
<script type="text/javascript" src="../../../global/script/mylib.js"></script>
<script type="text/javascript" src="../../../app.js"></script>
<script type="text/javascript" src="./frm.js"></script>

</html>


<script type="text/javascript" src="../../../global/script/_fakeApi.js"></script>

<script type="text/javascript">
	window.mockRecvMsg = {
		message: {
			extra: "",
			sentStatus: "SENT",
			messageId: 21,
			sentTime: 1501040183448,
			conversationType: "PRIVATE",
			messageDirection: "RECEIVE",
			receivedStatus: "UNREAD",
			content: {
				extra: "helloExtra",
				text: "hot message"
			},
			objectName: "RC:TxtMsg",
			senderUserId: "3",
			receivedTime: 1507629704286,
			targetId: "3"
		},
		left: 0
	}

	window.mockLateImgMsgs = [
	    {
	        "id": "6458893",
	        "direction": -1,
	        "msgtype": "pic",
	        "uid": "45616",
	        "message": null,
	        "sentTime": 1527059378,
	        "link": null,
	        "isread": "1",
	        "del_by_sender": "0",
	        "pic": "[本地图片]",
	        "audio": null,
	        "dateline": "1527059378",
	        "touid": "44374",
	        "del_by_recver": "0",
	        "datetime": "2018-05-23 15:09:38",
	        "islast": "1"
	    }, {
	        "id": "6458886",
	        "direction": -1,
	        "msgtype": "pic",
	        "uid": "45616",
	        "message": null,
	        "sentTime": 1527058067,
	        "link": null,
	        "isread": "1",
	        "del_by_sender": "0",
	        "pic": "[本地图片]",
	        "audio": null,
	        "dateline": "1527058067",
	        "touid": "44374",
	        "del_by_recver": "0",
	        "datetime": "2018-05-23 14:47:47",
	        "islast": "0"
	    },
	]

	window.mockLateMsgs = [{
	    "id": "6458893",
	    "direction": -1,
	    "msgtype": "pic",
	    "uid": "45616",
	    "message": null,
	    "sentTime": 1527059378,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": "[本地图片]",
	    "audio": null,
	    "dateline": "1527059378",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-23 15:09:38",
	    "islast": "1"
	}, {
	    "id": "6458886",
	    "direction": -1,
	    "msgtype": "pic",
	    "uid": "45616",
	    "message": null,
	    "sentTime": 1527058067,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": "[本地图片]",
	    "audio": null,
	    "dateline": "1527058067",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-23 14:47:47",
	    "islast": "0"
	}, {
	    "id": "6458880",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "[色][色]",
	    "sentTime": 1527056804,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1527056804",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-23 14:26:44",
	    "islast": "0"
	}, {
	    "id": "6458858",
	    "direction": 1,
	    "msgtype": "text",
	    "uid": "44374",
	    "message": "hello",
	    "sentTime": 1527052304,
	    "link": null,
	    "isread": "0",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1527052304",
	    "touid": "45616",
	    "del_by_recver": "0",
	    "datetime": "2018-05-23 13:11:44",
	    "islast": "0"
	}, {
	    "id": "6458857",
	    "direction": 1,
	    "msgtype": "pic",
	    "uid": "44374",
	    "message": null,
	    "sentTime": 1527052228,
	    "link": null,
	    "isread": "0",
	    "del_by_sender": "0",
	    "pic": "http://img.ikongji.com/attachment/newbie/post/201905/22/111234-1558497286751-3047.JPEG",
	    "audio": null,
	    "dateline": "1527052228",
	    "touid": "45616",
	    "del_by_recver": "0",
	    "datetime": "2018-05-23 13:10:28",
	    "islast": "0"
	}, {
	    "id": "6458396",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "tyyy",
	    "sentTime": 1526996369,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526996369",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 21:39:29",
	    "islast": "0"
	}, {
	    "id": "6458377",
	    "direction": 1,
	    "msgtype": "text",
	    "uid": "44374",
	    "message": "亲爱的",
	    "sentTime": 1526995325,
	    "link": null,
	    "isread": "0",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526995325",
	    "touid": "45616",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 21:22:05",
	    "islast": "0"
	}, {
	    "id": "6458376",
	    "direction": -1,
	    "msgtype": "pic",
	    "uid": "45616",
	    "message": null,
	    "sentTime": 1526995314,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": "[本地图片]",
	    "audio": null,
	    "dateline": "1526995314",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 21:21:54",
	    "islast": "0"
	}, {
	    "id": "6458375",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "cesgi",
	    "sentTime": 1526995306,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526995306",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 21:21:46",
	    "islast": "0"
	}, {
	    "id": "6458374",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "[发怒][发怒]",
	    "sentTime": 1526995300,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526995300",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 21:21:40",
	    "islast": "0"
	}, {
	    "id": "6458372",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "tyy",
	    "sentTime": 1526995147,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526995147",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 21:19:07",
	    "islast": "0"
	}, {
	    "id": "6458356",
	    "direction": -1,
	    "msgtype": "pic",
	    "uid": "45616",
	    "message": null,
	    "sentTime": 1526994308,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": "[本地图片]",
	    "audio": null,
	    "dateline": "1526994308",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 21:05:08",
	    "islast": "0"
	}, {
	    "id": "6458346",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "abcxdf",
	    "sentTime": 1526993796,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526993796",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 20:56:36",
	    "islast": "0"
	}, {
	    "id": "6458344",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "123",
	    "sentTime": 1526993621,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526993621",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 20:53:41",
	    "islast": "0"
	}, {
	    "id": "6458337",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "wer",
	    "sentTime": 1526993324,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526993324",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 20:48:44",
	    "islast": "0"
	}, {
	    "id": "6458289",
	    "direction": 1,
	    "msgtype": "text",
	    "uid": "44374",
	    "message": "rid",
	    "sentTime": 1526991915,
	    "link": null,
	    "isread": "0",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526991915",
	    "touid": "45616",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 20:25:15",
	    "islast": "0"
	}, {
	    "id": "6458030",
	    "direction": 1,
	    "msgtype": "pic",
	    "uid": "44374",
	    "message": null,
	    "sentTime": 1526962628,
	    "link": null,
	    "isread": "0",
	    "del_by_sender": "0",
	    "pic": "http://img.ikongji.com/attachment/newbie/post/201905/22/111234-1558497286751-3047.JPEG",
	    "audio": null,
	    "dateline": "1526962628",
	    "touid": "45616",
	    "del_by_recver": "0",
	    "datetime": "2018-05-22 12:17:08",
	    "islast": "0"
	}, {
	    "id": "6454002",
	    "direction": -1,
	    "msgtype": "text",
	    "uid": "45616",
	    "message": "[发怒][发怒]",
	    "sentTime": 1526554287,
	    "link": null,
	    "isread": "1",
	    "del_by_sender": "0",
	    "pic": null,
	    "audio": null,
	    "dateline": "1526554287",
	    "touid": "44374",
	    "del_by_recver": "0",
	    "datetime": "2018-05-17 18:51:27",
	    "islast": "0"
	}]

	window.mockLateMsgsNew = [{
	    id: "393285",
	    uid: "17",
	    touid: "9",
	    msgtype: "text",
	    message: "xox",
	    dateline: "1561547264",
	    datetime: "2019-06-26 19:07:44",
	    pic: null,
	    audio: null,
	    link: null,
	    isread: "0",
	    islast: "0",
	    del_by_sender: "0",
	    del_by_recver: "0",
	    senderUId: 17,
	    senderUsername: "子牛",
	    senderAvatar: "http://www.ikongji.com/uc_server/images/avatar/avatar_5_middle.gif",
	    senderIsMe: 1,
	    sentTime: 1561547264,
	},
	{
	    id: "393283",
	    uid: "17",
	    touid: "9",
	    msgtype: "text",
	    message: "xhdjq",
	    dateline: "1561547257",
	    datetime: "2019-06-26 19:07:37",
	    pic: null,
	    audio: null,
	    link: null,
	    isread: "0",
	    islast: "0",
	    del_by_sender: "0",
	    del_by_recver: "0",
	    senderUId: 17,
	    senderUsername: "子牛",
	    senderAvatar: "http://www.ikongji.com/uc_server/images/avatar/avatar_5_middle.gif",
	    senderIsMe: 1,
	    sentTime: 1561547257,
	},
	{
	    id: "69",
	    uid: "9",
	    touid: "17",
	    msgtype: "text",
	    message: "hello",
	    dateline: "1552141548",
	    datetime: "2019-03-09 22:25:48",
	    pic: null,
	    audio: null,
	    link: null,
	    isread: "1",
	    islast: "0",
	    del_by_sender: "0",
	    del_by_recver: "0",
	    senderUId: 9,
	    senderUsername: "丰码牛",
	    senderAvatar: "http://img.ikongji.com/qiniu_avatar/app1/000/00/00/09_avatar_6.jpg?imageView2/2/w/120/h/120",
	    senderIsMe: 0,
	    sentTime: 1552141548,
	},
	{
	    id: "16",
	    uid: "9",
	    touid: "17",
	    msgtype: "text",
	    message: "困",
	    dateline: "1551682146",
	    datetime: "2019-03-04 14:49:06",
	    pic: null,
	    audio: null,
	    link: null,
	    isread: "1",
	    islast: "0",
	    del_by_sender: "0",
	    del_by_recver: "0",
	    senderUId: 9,
	    senderUsername: "丰码牛",
	    senderAvatar: "http://img.ikongji.com/qiniu_avatar/app1/000/00/00/09_avatar_6.jpg?imageView2/2/w/120/h/120",
	    senderIsMe: 0,
	    sentTime: 1551682146,
	},
	{
	    id: "15",
	    uid: "9",
	    touid: "17",
	    msgtype: "text",
	    message: "世俗",
	    dateline: "1551681954",
	    datetime: "2019-03-04 14:45:54",
	    pic: null,
	    audio: null,
	    link: null,
	    isread: "1",
	    islast: "0",
	    del_by_sender: "0",
	    del_by_recver: "0",
	    senderUId: 9,
	    senderUsername: "丰码牛",
	    senderAvatar: "http://img.ikongji.com/qiniu_avatar/app1/000/00/00/09_avatar_6.jpg?imageView2/2/w/120/h/120",
	    senderIsMe: 0,
	    sentTime: 1551681954,
	},
	{
	    id: "14",
	    uid: "9",
	    touid: "17",
	    msgtype: "text",
	    message: "的",
	    dateline: "1551681789",
	    datetime: "2019-03-04 14:43:09",
	    pic: null,
	    audio: null,
	    link: null,
	    isread: "1",
	    islast: "0",
	    del_by_sender: "0",
	    del_by_recver: "0",
	    senderUId: 9,
	    senderUsername: "丰码牛",
	    senderAvatar: "http://img.ikongji.com/qiniu_avatar/app1/000/00/00/09_avatar_6.jpg?imageView2/2/w/120/h/120",
	    senderIsMe: 0,
	    sentTime: 1551681789,
	},
	{
	    id: "13",
	    uid: "9",
	    touid: "17",
	    msgtype: "text",
	    message: "鸡蛋壳",
	    dateline: "1551681785",
	    datetime: "2019-03-04 14:43:05",
	    pic: null,
	    audio: null,
	    link: null,
	    isread: "1",
	    islast: "0",
	    del_by_sender: "0",
	    del_by_recver: "0",
	    senderUId: 9,
	    senderUsername: "丰码牛",
	    senderAvatar: "http://img.ikongji.com/qiniu_avatar/app1/000/00/00/09_avatar_6.jpg?imageView2/2/w/120/h/120",
	    senderIsMe: 0,
	    sentTime: 1551681785,
	},
	{
	    id: "12",
	    uid: "17",
	    touid: "9",
	    msgtype: "text",
	    message: "广告",
	    dateline: "1550728622",
	    datetime: "2019-02-21 13:57:02",
	    pic: null,
	    audio: null,
	    link: null,
	    isread: "1",
	    islast: "0",
	    del_by_sender: "0",
	    del_by_recver: "0",
	    senderUId: 17,
	    senderUsername: "子牛",
	    senderAvatar: "http://www.ikongji.com/uc_server/images/avatar/avatar_5_middle.gif",
	    senderIsMe: 1,
	    sentTime: 1550728622,
	}];

	window.mockLateGroupMsgsNew = [{
	    id: "3",
	    createtime: "2019-07-03 12:03:50",
	    groupid: "1",
	    from_gmid: "2",
	    msgtype: "text",
	    message: "发红包！！",
	    pic: null,
	    audio: null,
	    status: "1",
	    senderUId: 2,
	    senderUsername: "城管理员",
	    senderAvatar: "http://img.ikongji.com/qiniu_avatar/app1/000/00/00/02_avatar_1.jpg?imageView2/2/w/120/h/120",
	    senderIsMe: 0,
	    sentTime: 1562126630,
	}, {
	    id: "2",
	    createtime: "2019-07-03 12:03:10",
	    groupid: "1",
	    from_gmid: "1",
	    msgtype: "text",
	    message: "谢谢群主，群主发红包谢谢群主，群主发红包谢谢群主，群主发红包谢谢群主，群主发红包谢谢群主，群主发红包",
	    pic: null,
	    audio: null,
	    status: "1",
	    senderUId: 1,
	    senderUsername: "admin",
	    senderAvatar: "http://www.ikongji.com/uc_server/images/avatar/avatar_1_middle.gif",
	    senderIsMe: 0,
	    role: '群主',
	    sentTime: 1562126590,
	}, {
	    id: "1",
	    createtime: "2019-07-03 12:02:52",
	    groupid: "1",
	    from_gmid: "17",
	    msgtype: "text",
	    message: "welcome all, guys",
	    pic: null,
	    audio: null,
	    status: "1",
	    senderUId: 17,
	    senderUsername: "子牛",
	    senderAvatar: "http://www.ikongji.com/uc_server/images/avatar/avatar_5_middle.gif",
	    senderIsMe: 1,
	    role: '助理',
	    role_color: '#ff0000',
	    sentTime: 1562126572,
	}, {
	    id: "1",
	    createtime: "2019-07-03 12:02:52",
	    groupid: "1",
	    from_gmid: "0",
	    msgtype: "sys",
	    message: "张三加入群聊张三加入群聊张三加入群聊张三加入群聊张三加入群聊张三加入群聊张三加入群聊",
	    pic: null,
	    audio: null,
	    status: "1",
	    senderUId: 17,
	    senderUsername: "子牛",
	    senderAvatar: "http://www.ikongji.com/uc_server/images/avatar/avatar_5_middle.gif",
	    senderIsMe: 1,
	    role: '助理',
	    role_color: '#ff0000',
	    sentTime: 1562126572,
	}, {
	    "id": "440773",
	    "createtime": "2019-07-18 01:26:18",
	    "groupid": "1",
	    "from_gmid": "0",
	    "onlyto_gmid": "",
	    "said_by": "1",
	    "msgtype": "sys",
	    "message": "\u5f20\u4e09\u5230\u8d26 <span style='color:#c50d05'>100<\/span> 元",
	    "pic": null,
	    "audio": null,
	    "status": "1",
	    "sentTime": 1563384378
	}];

	api.pageParam = {
        // conv: 'PRIVATE'
        conv: 'GROUP'
    };
	api.refreshHeaderLoading = function () {};
	api.refreshHeaderLoadDone = function () {};

	apiready();
    window.my = {
        uid: 44374
    };
	fooLateMsgs();
</script>
